﻿namespace Ln.Tool.Application.Contracts.Dtos;

public class TemplateGenCreateInputDto
{
	/// <summary>
	/// 模块名称
	/// </summary>
	public string Name { get; set; }

	/// <summary>
	/// 需要替换的字符串内容
	/// </summary>
	public Dictionary<string, string> ReplaceStrData { get; set; } = new Dictionary<string, string>();

	public void SetNameReplace()
	{
		ReplaceStrData.Add("{space}", this.Name);
		ReplaceStrData.Add("{name}", this.Name.Replace(".", ""));
	}
}
